/*
 * Node.h
 *
 *  Created on: Dec 21, 2011
 *      Author: dzm
 */

#ifndef NODE_H_
#define NODE_H_

#include <QObject>
#include <QString>
#include <sstream>
#include <iostream>

typedef enum{
	LOCAL,
	REMOTE
}Run_mode;


class Node{
public:
	Node();
	Node(int k);
	std::string toString();
	std::string nodeInfo();
	virtual ~Node();

public:
	static int dimension ;
	static int length ;
	static short mode;   //"local" or "remote"


	short* m ;
	QString serverIP_str;
	unsigned short* port;
	unsigned short* tcpPort;

};
#endif /* NODE_H_ */
